/** When your routing table is too long, you can split it into small modules**/

// 系统管理

import Layout from '@/views/layout/Layout'
import wxClass from '@/views/wxuniapp/uni-class/wxClass'
const wxUniapp = {
  path: '/wxUniapp',
  component: Layout,
  alwaysShow: true,
  name: '微信小程序',
  redirect: 'noredirect',
  meta: {
    title: '微信小程序',
    icon: 'tree-table',
    resources: 'wxUniapp'
  },
  children: [
    {//名师列表
      path: 'wxTeacherList',
      component: () => import('@/views/wxmp/system-manage/account-manage/accountList'),
      name: '名师列表',
      meta: { title: '名师列表', icon: 'wechat', noCache: true, resources: 'wxTeacherList' }
    },

    //课程管理
    {
      path: '/wxClass',
      component: wxClass,
      alwaysShow: true,
      name: '课程列表',
      redirect: 'noredirect',
      meta: {
        title: '课程列表',
        icon: 'tree-table',
        resources: 'wxClass'
      },
      children: [
        {
          path: 'wxUniClassTextList',
          component: () => import('@/views/wxuniapp/uni-class/uni-class-text/classTextList'),
          name: '图文课程',
          meta: { title: '图文课程', icon: 'message', noCache: true, resources: 'wxUniClassTextList' }
        },
        {
          path: 'wxUniClassVideoList',
          component: () => import('@/views/wxuniapp/uni-class/uni-class-text/classTextList'),
          name: '视频课程',
          meta: { title: '视频课程', icon: 'message', noCache: true, resources: 'wxUniClassVideoList' }
        },
      ]
    },

    {//字典管理
      path: 'wxUniDirctList',
      component: () => import('@/views/wxuniapp/uni-dirct/dirctList'),
      name: '字典管理',
      meta: { title: '字典管理', icon: 'wechat', noCache: true, resources: 'wxUniDirctList' }
    },
    {//消息通知
      path: 'wxUniNotifyList',
      component: () => import('@/views/wxuniapp/uni-notify/notifyList'),
      name: '信息通知',
      meta: { title: '信息通知', icon: 'message', noCache: true, resources: 'wxUniNotifyList' }
    }
  ]
}

export default wxUniapp
